﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace RBACDuYaJun.Api.Appliction.Command.MenuCommand
{
    public class MenuUpdateCommand:IRequest<int>
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        [Key]
        public int MenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuName { get; set; }
        /// <summary>
        /// 要跳转的地址
        /// </summary>
        public string? MenuUrl { get; set; }
        /// <summary>
        /// 父ID
        /// </summary>
        public int MenuPid { get; set; }
        /// <summary>
        /// 菜单删除标志
        /// </summary>
        public bool MenuDelete { get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public string? CreateBy { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }

    }
}
